<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Travel Dream - Home</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<div id="maincontainer">
  <div id="menu">
    <div>
    	<ul style="display:block;list-style-type:none;">
    		<li><a href="home.xhtml">HOME</a></li>
    		<li><a href="search package.xhtml">RICERCA PACCHETTO</a></li>
    		<li><a href="search component.xhtml">RICERCA COMPONENTE</a></li>
    	</ul>
    </div>
  </div>
  <div id="right_column">
<h:form>
<p:dataGrid var="e" value="#{ExcursionMgr.currentList}" columns="1" rows="12" paginator="true">
        <p:column>
           <p:panel>
              <h:panelGrid columns="2">
              		<h:outputLabel value="Nome:" />
                  	<h:outputText value="#{e.name}" />
                  	
                  	<h:outputLabel value="Descrizione:" />
                  	<h:outputText value="#{e.description}" />
                  	
                  	<h:outputLabel value="Nazione:" />
                  	<h:outputText value="#{e.nation}" />
                  	
                  	<h:outputLabel value="PostiDisponibili:" />
                  	<h:outputText value="#{e.placesAvailable}" />
                  	
                  	<h:outputLabel value="Prezzo:" />
                  	<h:outputText value="#{e.price}" />
                  	
                  	<h:commandButton action="#{ExcursionMgr.goToUpdate(e)}" value="Update" />
                  	
               </h:panelGrid>
           </p:panel>
        </p:column>
  </p:dataGrid>
 </h:form>
 </div>
 </div>
</h:body>
</html>
